package com.lhd.usermanagement.service;

import com.lhd.usermanagement.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author lhd666
* description 针对表[user(用户)]的数据库操作Service
* createDate 2024-04-30 16:51:39
*/
public interface UserService extends IService<User> {


    /**
     * 注册功能
     * @param userAccount 用户账户
     * @param userPassword 用户密码
     * @param checkPassword 校验密码
     * @return id
     */
    long userRegister(String userAccount,String userPassword,String checkPassword,String planetCode);

    /**
     * 登录功能

     */
    User userLogin(String userAccount, String userPassword, HttpServletRequest httpServletRequest);

    /**
     * 用户脱敏
     *
     */
    User getSafetyUser(User origiUser);

    /**
     * 注销功能
     */
    int userLoginOut(HttpServletRequest request);
}
